!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):b((a=a||self).countUp={})}(this,function(b){"use strict";var c=function(){return(c=Object.assign||function(b){for(var c,d=1,e=arguments.length;df.endVal?f.endVal:f.frameVal,f.frameVal=+f.frameVal.toFixed(f.options.decimalPlaces),f.printValue(f.frameVal),bb?"-":"";if(c=Math.abs(b).toFixed(f.options.decimalPlaces),g=(d=(c+="").split("."))[0],h=1b;const a=b-this.startVal;if(Math.abs(a)>this.options.smartEasingThreshold){this.finalEndVal=b;const c=this.countDown?1:-1;this.endVal=b+c*this.options.smartEasingAmount,this.duration/=2}else this.endVal=b,this.finalEndVal=null;this.useEasing=!this.finalEndVal&&this.options.useEasing},a.prototype.start=function(a){this.error||(this.callback=a,0